<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS引入方式</title>
</head>
<body>
<input type="button" value="按钮" onclick="alert('按钮点击了！')">

<script>
  console.log("内部引用成功！")
</script>
<script src="my.js"></script>
</body>
</html>